package com.wjc.train.business.mapper;

import com.wjc.train.business.entity.TrainSeat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wjc.train.business.req.TrainSeatQueryReq;
import com.wjc.train.business.resp.TrainSeatQueryResp;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 座位表 Mapper 接口
 * </p>
 *
 * @author Guessed
 * @since 2023-08-03
 */
public interface TrainSeatMapper extends BaseMapper<TrainSeat> {

  IPage<TrainSeatQueryResp> queryList(@Param("page") IPage<TrainSeatQueryResp> page,
                                       @Param("trainseatQueryReq") TrainSeatQueryReq trainseatQueryReq);

  void deleteRealById(@Param("trainCode") String trainCode);
}
